main: main.c say.c
	gcc -c say.c             #compile say.c to object file say.o
	ar -r say.a say.o        #make say.o to static library using 'ar'
	gcc main.c say.a -o main #compile main program
	ldd main                 #check the so main depends on.

.PHONY: clean run
clean:
	rm -f main say.a say.o
run:
	./main
